package com.woniu.smallmedical.mapper;

import com.woniu.smallmedical.entity.*;

import java.util.List;


public interface PermissionMapper {
    List<Role> selectRole();
    List<TreeMenu> selectTreeMenu();
    Role selectTreeMenuByRid(Integer rid);
    TreeMenu selectTreeMenuByMid(Integer mid);
    TreeMenu selectTreeMenuByPmid(Integer pmid);
    void deleteRoleMenuByRid(Integer rid);
    void insertRoleMenu(RoleMenu roleMenu);
    List<Permission> selectPermission();
    void deleteRolePermissionByRid(Integer rid);
    void insertRolePermission(RolePermission rolePermission);
    Permission selectPermissionByPid(Integer pid);
    Permission selectPermissionByPpid(Integer ppid);
}
